from pom_ui_frame.base_page.basepage import BasePage


class Logout(BasePage):
    url='http://39.101.122.147:3000'

    # delete1=('xpath','/html/body/div[3]/span/div/a/span/i/svg/path')
    out_click=('xpath','//*[@id="app"]/section/section/header/div/div/span[6]/a')
    yes=('xpath','/html/body/div[5]/div/div[2]/div/div[2]/div/div/div[2]/button[2]')
    def log_out(self):
        self.open(self.url)
        self.wait(1)
        self.click(*self.out_click)
        self.wait(1)
        self.click(*self.yes)
        self.wait(3)

